[//HAI! I CAN HAZ LASSO?


	'<div ';
		'class="';
		If: (((Var: ($rewAction + '_Missing'))->(Find:$a_column_decrypted))->Size) > 0;
				'formHintError';
		Else: (((Var: ($rewAction + '_Invalid'))->(Find:$a_column_decrypted))->Size) > 0;
				'formHintError';
		Else;
				'formEntry';
		/If;
		'" >';
		
		
		
			'<h6>Select Related ' + $field_label;
			include('/_Makerator/_Library/form_required_flag.lasso'); 
			'</h6>';
			
			
			/*
				this is some related tables stuff
			*/
			var('related_tables' = $these->split('_'));
			
			var('lookup_table' = $a_column);
			$lookup_table->removetrailing('UID');
			
			//look for table w/o an "s"
			var('some_tables' = array);
			inline($connection_db, -sql='show tables');
					rows;
							$some_tables->insert(column('Tables_in_'$siteDB));
					/rows;
			/inline;
			
			$some_tables->find($lookup_table)->size ? '' | $lookup_table += 's';
			
			var($lookup_table = array);
			inline($connection_db, -sql='SELECT UID, Title FROM ' $lookup_table ' ORDER BY Title');
					rows;
							var($lookup_table)->insert(pair(column('UID') = column('Title')));
					/rows;
			/inline;
					
					
			'<select name="' + $a_Column + '" >';
					'<option ';
						'label="(please choose one)" ';
						'value="" ';
						'>';
							'(please choose one)';
					'</option>';
					iterate(var($lookup_table), local('x'));
							'<option ';
								'value="' #x->first'" ';
								If: (Variable_Defined:  $a_column_decrypted);
										if(var($a_column_decrypted) == #x->first);
												' selected="selected" ';
										/If;
								/If;
								' >';
									#x->second;
							'</option>\n';
					/iterate;
			'</select>';
			
/*			'<input ';*/
/*				'type="text" ';*/
/*				'name="' + $a_Column + '" ';*/
/*				'id="' + $a_Column + '" ';*/
/*				'value="';*/
/*					;*/
/*					If: (Variable_Defined: $a_column_decrypted);*/
/*							(Var: $a_column_decrypted);*/
/*					Else;*/
/*							$a_default;*/
/*					/If;*/
/*					'" ';*/
/*				' />';*/
			If: (((Var: ($rewAction + '_Missing'))->(Find:$a_column_decrypted))->Size) > 0;
					'<div class="missing">This field is required.</div>';
			Else: (((Var: ($rewAction + '_Invalid'))->(Find:$a_column_decrypted))->Size) > 0;
					iterate: (Var($rewAction + '_ValidationWarnings')), var: 'a_pair';
						if($a_pair->first == $a_column_decrypted);
						'<div class="invalid"><strong>Error:</strong> ';
								$a_pair->Second;
						'</div>';
						/if;
					/iterate;
			/If;
			If: $a_description != '';
					'<div class="description">' + $a_description + '</div>';
			/If;
	'</div>';
	'<div class="spacer">';
			'';
	'</div>';


]